const fs = require('fs');
const path = require('path');
const mime = require("mime")

function test() {
  // console.log(config)
  let fpath = path.join(__dirname, '/public/media/oth/1.jpg');
  console.log(mime.lookup(fpath))
  console.log(mime.extension(fpath))
}

// console.log(path.join(__dirname, '/public/media'))
test()